export const mixin = {
    methods: {
        //只能输入正整数,不能0开头
        verify(val, name, thisName) {
            this[thisName][name] = val.replace(/\D|^0/g, '');
        },
        //只能输入字母和汉字
        verifyText(val, name, thisName) {
            this[thisName][name] = val.replace(/[^a-zA-Z\u4E00-\u9FA5]/g, '');
        },
        //车名车牌号
        verifyLicense(val, name, thisName){
            this[thisName][name] = val.replace(/[^a-zA-Z0-9\u4e00-\u9fa5,-]/g, '');
        }
       
    }
};
